<?php
namespace app\index\controller;
use think\Db;
/**
* 1.全局配置
*/
class Demo
{
	
	public function conn()
	{
		Db::table(table:'admin')
		->where(field:'id',op:1)
		->value(field:'name')
	}
}

 ?>